import request from "@/util/request.js"


const getAll = ()=>{
    return request({
        url:"Menu/getAll",
    })
}
const Query=(data)=>{
	return request({
		url:"Menu",
		params:data
	})
}

const Add=(data)=>{
	return request({
		url:"Menu/Add",
		data,
	    method:"post"
	})
	
}

const FuCha=()=>{
    return request({
		url:"Menu/FuCha",
	})
}

const GetOne=(id)=>{
	return request({
		url:"Menu/GetOne",
		params:{id}
	})
}
const Update=(data)=>{
	return request({
		url:"Menu/Update",
		data,
		method:"post"
		
	})
	
}

const Delete=(id)=>{
	return request({
		url:"Menu/"+id,
		method:"Delete"
	})
}
export default {
    getAll,
	FuCha,
	Query,
	Add,
	Update,
	GetOne,
	Delete
}